var msgText=/id="indicatorMail" class="(\w+)/g.exec(response)[1];
var show = 0;
if(messages && msgText == 'show') {
html+= '<a href="http://mail.myspace.com/index.cfm?fuseaction=mail.inbox"><img src="'+messageIcon+'"> New Messages</a><br />';
show = 1;
}
var reqText=/id="indicatorFriendRequest" class="(\w+)/g.exec(response)[1];
if(friendrequests && reqText == 'show') {
html+= '<a href="http://mail.myspace.com/index.cfm?fuseaction=mail.friendRequests"><img src="'+friendrequestIcon+'"> New Friend Requests</a><br />';
show = 1;
}
var comText=/id="indicatorComments" class="(\w+)/g.exec(response)[1];
if(comments && comText == 'show') {
html+= '<a href="http://comments.myspace.com/index.cfm?fuseaction=user.HomeComments&friendID='+friendid+'"><img src="'+commentIcon+'"> New Comments</a><br />';
show = 1;
}
var imgText=/id="indicatorImageComments" class="(\w+)/g.exec(response)[1];
if(imgcomments && imgText == 'show') {
html+= '<a href="http://viewmorepics.myspace.com/index.cfm?fuseaction=user.viewPicture&friendID='+friendid+'"><img src="'+imgcommentIcon+'"> New Picture Comments</a><br />';
show = 1;
}
var bcomText=/id="indicatorBlogComments" class="(\w+)/g.exec(response)[1];
if(blogComments && bcomText == 'show') {
html+= '<a href="http://blog.myspace.com/index.cfm?fuseaction=blog.controlcenter"><img src="'+blogCommentIcon+'"> New Blog Comments</a><br />';
show = 1;
}
var blogText=/id="indicatorBlogs" class="(\w+)/g.exec(response)[1];
if(blogSubscriptions && blogText == 'show') {
html+= '<a href="http://blog.myspace.com/index.cfm?fuseaction=blog.controlcenter"><img src="'+blogSubscriptionIcon+'"> New Blog Subscription Posts</a><br />';
show = 1;
}
var eventText=/id="indicatorEvents" class="(\w+)/g.exec(response)[1];
if(events && eventText == 'show') {
html+= '<a href="http://mail.myspace.com/index.cfm?fuseaction=mail.eventInvite"><img src="'+eventIcon+'"> New Event Invitation</a><br />';
show = 1;
}
var bdayText=/id="indicatorBirthday" class="(\w+)/g.exec(response)[1];
if(birthdays && bdayText == 'show') {
html+= '<a href="http://collect.myspace.com/index.cfm?fuseaction=user.birthdays&friendID='+friendid+'"><img src="'+birthdayIcon+'"> New Birthdays</a><br />';
show = 1;
}
if(show == 1) {
// Create notifier element.
var notifier = document.createElement('div');
notifier.setAttribute('id', 'GM_MSNotify');
document.body.appendChild(notifier);
notifier.innerHTML = html;
// Apply some custom CSS to the notifier element.
PRO_addStyle('#GM_MSNotify {' +
'display:block!important;' +
//FIXME for IE
//'position:fixed!important;' +
'position:absolute!important;' +
'top:0!important;' +
'left:0!important;' +
'z-index:9999!important;' +
'width:150px!important;' +
'background-color:#000000!important;' +
'opacity:80.0!important;' +
'text-align:left!important;' +
'-moz-border-radius:0 0px 10 10!important;' +
'padding:3px!important;}' +
'#GM_MSNotify a {' +
'display:inline!important;' +
'color:#FFF!important;' +
'text-decoration:none!important;' +
'line-height:8px;' +
'font:bold 10px Century Gothic, serif!important;}' +